package com.lemontree.spring3.day01;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by lemontree on 2017/7/27.
 */
//@ContextConfiguration
//@RunWith(SpringJUnit4ClassRunner.class)
public class SpringTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        Cook cook = (Cook) applicationContext.getBean("cook");
        cook.eat();
        cook.getCat().eat();
    }
}
